package com.flurry.android;

import java.util.HashMap;
import java.util.Vector;
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;

final class fh
  implements AppCloudResponseHandler
{
  fh(fy paramfy)
  {
  }

  public final void handleResponse(AppCloudResponse paramAppCloudResponse)
    throws Exception
  {
    if ((paramAppCloudResponse != null) && (paramAppCloudResponse.isSuccessful()))
    {
      JSONObject localJSONObject = paramAppCloudResponse.getResponse().getJSONArray("set").getJSONObject(0);
      if (this.gO.io)
      {
        AppCloudUser localAppCloudUser = new AppCloudUser(localJSONObject);
        for (int i = 0; i < localAppCloudUser.getKeyValues().size(); i++)
        {
          String str1 = ((NameValuePair)localAppCloudUser.getKeyValues().get(i)).getName();
          String str2 = ((NameValuePair)localAppCloudUser.getKeyValues().get(i)).getValue();
          this.gO.ig.paramMap.put(str1, str2);
          FlurryAppCloud.E().e(str1, str2, this.gO.ig.mId);
        }
      }
      AppCloudObject localAppCloudObject = new AppCloudObject(localJSONObject);
      paramAppCloudResponse.setObject(localAppCloudObject);
      localAppCloudObject.saveToCache();
      for (int j = 0; j < localAppCloudObject.getKeyValues().size(); j++)
      {
        String str3 = ((NameValuePair)localAppCloudObject.getKeyValues().get(j)).getName();
        String str4 = ((NameValuePair)localAppCloudObject.getKeyValues().get(j)).getValue();
        this.gO.ig.paramMap.put(str3, str4);
      }
    }
    if (this.gO.in != null)
      this.gO.in.handleResponse(paramAppCloudResponse);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.fh
 * JD-Core Version:    0.6.2
 */